//
//  MYPictureViewCell.m
//  MYChatting
//
//  Created by mac on 16/8/24.
//  Copyright © 2016年 lhf. All rights reserved.
//

#import "MYPictureViewCell.h"
#import "UIImageView+WebCache.h"
#import "Masonry.h"

@implementation MYPictureViewCell


- (void)setPic_string:(NSString *)pic_string{
    _pic_string = pic_string;
    
    UIImageView *iconView = [[UIImageView alloc] init];
    iconView.contentMode = UIViewContentModeScaleAspectFill;
    iconView.clipsToBounds = true;
    [self.contentView addSubview:iconView];
   // NSLog(@"MM----%@",pic_string);
    [iconView sd_setImageWithURL:[NSURL URLWithString:pic_string]];
    
    [iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
    }];
}

@end
